﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccessLayer.Models.WebFormDataSetTableAdapters;

namespace DataAccessLayer.Models
{
    public class ViewApplicantModel
    {
        public WebFormDataSet.CustomerDataTable custData;

        public ViewApplicantModel(string UserName)
        {
            CustomerTableAdapter Ta = new CustomerTableAdapter();
            custData = new WebFormDataSet.CustomerDataTable();

            Ta.Fill(custData,UserName);
        }
    }

    public class ViewAppSummaryModel
    {
        public WebFormDataSet.AppSummaryDataTable appData;

        public ViewAppSummaryModel(string UserName)
        {
            AppSummaryTableAdapter Ta = new AppSummaryTableAdapter();
            appData = new WebFormDataSet.AppSummaryDataTable();

            Ta.Fill(appData, UserName);
        }

        public WebFormDataSet.AppSummaryDataTable getAppData()
        {
            return appData;
        }
    }

    public class ViewAppDetailModel
    {
        public WebFormDataSet.AppDetailDataTable appDetail;

        public ViewAppDetailModel(int myAppl)
        {
            AppDetailTableAdapter Ta = new AppDetailTableAdapter();
            appDetail = new WebFormDataSet.AppDetailDataTable();

            Ta.Fill(appDetail, myAppl);
        }

        public WebFormDataSet.AppDetailDataTable getAppDetail()
        {
            return appDetail;
        }
    }
}
